<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.lavegue.model.Area" %>
<%@page import="com.lavegue.common.BaseAction" %>
  <head>
    <base href="<%=basePath%>" />
    
    <title>修改用户信息</title>
    <script type='text/javascript' src='dwr/interface/userdwr.js'></script>
     <script type='text/javascript' src='dwr/interface/areadwr.js'></script>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type='text/javascript' src='js/jquery.validate.min.js'></script>
 	<script type='text/javascript' src='js/common.js'></script>
	<meta http-equiv="pragma" content="no-cache" />
	<script type='text/javascript' src='<%=basePath %>/dwr/engine.js'></script>
 	<script type='text/javascript' src='<%=basePath %>/dwr/util.js'></script>
	<link href="images/css.css"  rel="stylesheet" type="text/css" />
	<link href="backStageManage/bs.css"  rel="stylesheet" type="text/css" />
	    
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.STYLE13 {color: #A3A3A3}
-->
</style>

<script type="text/javascript">

function checkValid(){
		var account = $.trim($("#account").val());   //手机号
		var passwd = $.trim($("#password").val());   //新密码 
		var cfpasswd = $.trim($("#confirmationPassword").val());   //确认密码 
		
		var userName = $.trim($("#user_name").val()); //真实姓名 

		//所在地区的值
		var province = $.trim($("#province").val()); //获取省份值
		var city = $.trim($("#city").val()); //获取市区值
		var area = $.trim($("#area").val()); //获取区域值
		var company=$.trim($("#company").val());  //所属公司
		
		var pwd_qst =$.trim($("#pwd_question").val()); //密码查询问题
		var pwd_answer= $.trim($("#pwd_answer").val()); //密码查询答案 
		
		var userEmail = $.trim($("#email").val());  //email
		var userQq = $.trim($("#userQq").val());  //QQ
		var individualUrl=$.trim($("#personalHonepage").val());  //个人主页网址
		var personalIntro = $.trim($("#personalIntro").val());  //个人介绍
		
		if(account == ""){ //帐号效验
			$("#mobileSpan").html("");
			$("#mobileSpan").html("&nbsp;&nbsp;请输入你的手机号码.");
			$("#account").focus();
			return false;
		}else{
			//----以下是效验手机号码
			if(!isValidMobile(account)){
				$("#mobileSpan").html("&nbsp;&nbsp;输入的手机号码有误.");
				$("#account").select();
				return false;
			}else{
				$("#mobileSpan").html("");
			}
			$("#mobileSpan").html("");
		}
		if(passwd != ""){  //效验密码
			if(passwd.length < 6){
				$("#passwordSpan").html("输入的新密码长度最小为6位.");
				$("#password").select();
				return false;
			}else{
				$("#passwordSpan").html("");
			}
			if(cfpasswd == ""){
				$("#cfPasswordSpan").html("请输入你的确认密码.");
				$("#confirmationPassword").focus();
				return false;
			}else{
				if(cfpasswd != passwd){
					$("#cfPasswordSpan").html("输入的确认密码和新密码不一致.");
					$("#confirmationPassword").select();
					return false;
				}
				$("#cfPasswordSpan").html("");
			}
		}else{
			if(cfpasswd != ""){
				$("#cfPasswordSpan").html("");
				$("#passwordSpan").html("请输入新密码.");
				$("#password").focus();
				return false;
			}
			
			$("#passwordSpan").html("");
		}
		
		if(userName==""){  //效验姓名
	    	$("#truenameSpan").html("请输入真实姓名.");
			$("#user_name").focus();
			return false;
		}else{
			if(userName !="" && userName.length > 0){
			   		//----以下是效验真实姓名是否是中文
					if(isIllegalChar(userName)){
						$("#truenameSpan").html("&nbsp;姓名包含了非法字符.");
						$("#user_name").select();
						return false;
					}
			 }else{
			 	$("#truenameSpan").html("");
			 }
			 $("#truenameSpan").html("");
		}
		
		if(province==0){// || city==0 || area==0
			$("#areaSpan").html("请选择所在地区.");
			return false;
		}else{
			$("#areaSpan").html("");
			$("#userProvince").val(province);
			
		//	var  pp = $.trim($("#userProvince").val());
		//	var  City = $.trim($("#userCity").val());
		//	alert("Province="+pp+",city="+City);
		}	
		if(city != 0){
			$("#userCity").val(city);
		}
		if(area != 0){
			$("#userZone").val(area);
		}
		
		if(company == ""){  //效验公司
			$("#companySpan").html("&nbsp;请选择所属公司.");
			$("#company").focus();
			return false;
		}else{
			$("#companySpan").html("");
		}
		
		if(pwd_qst==""){  //效验查询问题
			$("#questionSpan").html("");
			$("#questionSpan").html("请选择密码问题.");
			//$("#pwd_question").focus();
			return false;
		}else{
			$("#questionSpan").html("");
		}
		if(pwd_answer==""){ //效验查询答
			$("#answerSpan").html("");
			$("#answerSpan").html("请输入问题答案.");
			$("#pwd_answer").focus();
			return false;
		}else{
			if(isIllegalChar(pwd_answer)){
				$("#answerSpan").html("&nbsp;问题答案包含了非法字符.");
				$("#pwd_answer").select();
				return false;
			}else{
				$("#answerSpan").html("");
			}
		}
		
		//效验email
		if(userEmail !=""){
			//	alert("email=>"+isValidEmail(userEmail));
			if(!isValidEmail(userEmail)){
				$("#emailSpan").html("&nbsp;输入的E_Mail格式有误.");
				$("#userEmail").select();
				return false;
			}else{
				$("#emailSpan").html("");
			}
			$("#emailSpan").html("");
		}
		//效验QQ
		if(userQq != ""){
			//----以下是效验QQ
			if(!isValidQQ(userQq)){
					$("#qqSpan").html("&nbsp;输入的QQ号码有误.");
					$("#userQq").select();
					return false;
			}else{
				$("#qqSpan").html("");
			}
			$("#qqSpan").html("");
		}
		//效验个人主页网址
		if(individualUrl != ""){
			if(!isUrl(individualUrl)){
				$("#individualSpan").html("&nbsp;个人主页格式有误.");
				$("#personalHonepage").select();
				return false;
			}else{
				$("#individualSpan").html("");
			}
			$("#individualSpan").html("");
		}
		//个人简介
		if(personalIntro != ""){
			if(personalIntro.length > 1000){
				$("#personalIntroSpan").html("&nbsp;个人简介不能超过1000个字符.");
				return false;
			}else{
				$("#personalIntroSpan").html("");
			}
			$("#personalIntroSpan").html("");
		}
	return true;

}

function isZiMu_Num(str) {
	//var voidChar = /[@#\$%\^&\*]+/g;
	var voidChar = /^[A-Za-z0-9_]+$/g;
	
	return voidChar.test(str);
}
/**
 * 判断是不是有效的手机号码
 * 格式正确返回true,否则false.
 */
function isValidMobile(mobile) {
    //var pattern = /^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/;
    var pattern = /^((13[0-9]{1}|15[0-9]{1}|18[0-9]{1}|)+\d{8})$/;   
    return pattern.test(mobile);
}
/**
 * 判断是不是有效的电话号码
 * 格式正确返回true,否则false.
 */
function isValidTelPhone(telphone) {
    var pattern = /^((\d{3,4})|(\d{3,4}-))?\d{7,8}$/;
    return pattern.test(telphone);
}
/**
 * 判断是不是有效的email地址
 */
function isValidEmail(vEMail) {
	var regInvalid = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
	if(!regInvalid.test(vEMail)){
		return false;
	}
	return true; 
}
/**
 * 判断是不是有效的QQ
 * 格式正确返回true,否则false.
 */
function isValidQQ(qq){
	var exgQQ = /^[1-9]\d{4,11}$/;
	return exgQQ.test(qq);
}

/**
 * 判断是不是有效的邮政编码;
 * 格式正确返回true,否则false.
 */
function isValidZipcode(code) {
    var pattern = /^\d{6}$/;
    if (!pattern.test(code)) {
        return false;
    }
    return true;
}
/**
 * 判断是不是有效的汉字
 */
function checkIsChinese(str) {
    //正则表达式 /^[\u0391-\uFFE5]+$/
    var pattern = /[^\u4E00-\u9FA5]/g;
    if (pattern.test(str)) {
        return false;
    }
    return true;
}
function isUrl(str){
var Expression=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/; 
var expURL=  /^([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?$/; 
//var objExp=new RegExp("([^(http://|http:\\)])((www|cn)[.](\w)+[.]{1,}(net|com|cn|org|cc)(((\/[\~]*|\\[\~]*)(\w)+)|[.](\w)+)*(((([?](\w)+){1}[=]*))*((\w)+){1}([\&](\w)+[\=](\w)+)*)*)")
//var objExp=/([^(http://|http:\\)])((www|cn)[.](\w)+[.]{1,}(net|com|cn|org|cc)(((\/[\~]*|\\[\~]*)(\w)+)|[.](\w)+)*(((([?](\w)+){1}[=]*))*((\w)+){1}([\&](\w)+[\=](\w)+)*)*)/;

   return (Expression.test(str)==true || expURL.test(str)==true)?true:false;
}
/**
 * 验证输入的字符是否包含@#$%^&*:|+)(!~=}{;?>`<'非法字符
 * 如果返回true为包含,false不包含非法字符
 */	
function isIllegalChar(str) {
	var voidChar = /[@#\$%\^&\*\+\?:|.!~=>`<]+/g;
	return voidChar.test(str);
}
function isCurrency(currency){
 	var curr = /^\d+(\.\d+)?$/;
 	return curr.test(currency);
} 
function isNumber(num){
 	var number = /^\d+$/;
 	return number.test(num);
} 

//省份按钮事件
function changeProvinceHandler() {
	//获取省份下拉框的值
	var province = $("#province").val();
	//如果选择了"请选择这个项" (0表示选择了这个项)
	if (province == 0) {
		//删除市和区域下拉的全部选项
		DWRUtil.removeAllOptions("city");
		DWRUtil.addOptions("city", [{"id":0,"name":"请选择..." }], "id", "name");
		DWRUtil.removeAllOptions("area");
		DWRUtil.addOptions("area", [{"id":0,"name":"请选择..." }], "id", "name");
		return;
	} 
	
	//删除市下拉的全部选项
	DWRUtil.removeAllOptions("city");
	//根据所选择的省从后台获取相关的市
	areadwr.findAreaByParendIdAndlvType(province, <%= Area.AreaType.CITY%>, function(data){
	DWRUtil.addOptions("city", [{"id":0,"name":"请选择..." }], "id", "name");
	DWRUtil.addOptions("city", data, "id", "name");   //把data数据填充到城市下拉框
	DWRUtil.removeAllOptions("area");   //清除区域的初始值
	DWRUtil.addOptions("area", [{"id":0,"name":"请选择" }], "id", "name");
	});

}

//城市按钮事件
function changeCityHandler() {
	var city = $("#city").val();
	//如果选择了"请选择这个项"
	if (city == 0) {
		//删除区下拉的全部选项
		DWRUtil.removeAllOptions("area");
		DWRUtil.addOptions("area", [{"id":0,"name":"请选择..." }], "id", "name");
		return;
	} 
				
	//删除区域下拉的全部选项
	DWRUtil.removeAllOptions("area");
	//根据所选择的市从后台获取相关的区
	areadwr.findAreaByParendIdAndlvType(city, <%= Area.AreaType.AREA%>, function(data) {
	DWRUtil.addOptions("area", [{"id":0,"name":"请选择..." }], "id", "name");
	DWRUtil.addOptions("area", data, "id", "name"); //把data数据填充到区域下拉框
	});
}

//表单提交
function modUserSubmit(){
	if(!checkValid()){
		return false;
	}else{
		//表单提交
	    $("#modifyUserInfo").submit();
	}
}

//弹出对话框
function openPage(url)
{
	var r=parseInt(Math.random()*1000);
	window.showModalDialog(url,window,'status:no;help:no;dialogHeight:160px; dialogWidth:400px');
}

</script>
<script type="text/javascript">
	function uploadSubmit(){
		var fname = $.trim($("#pic").val());
//		alert("文件名==="+fname);
//		var subName = fname.substring(fname.lastIndexOf("\")+1, fname.lastIndexOf(".")+4);
//		$("#picFileName").val(subName);
//		alert("文件名==="+subName);
		//表单提交
//		alert($("#addForm"));
		if(fname == ""){
			$("#logoSpan").html("请选择你要上传的图片.");
			return false;
		}else
		{
			
			//从最后一个点开始,截取3三个字符
			var subName = fname.substr(fname.lastIndexOf(".")+1,3);
		//	alert("图片类型："+subName);
			if(subName.toUpperCase() != "JPG" && subName.toUpperCase() != "GIF"){
				$("#logoSpan").html("你上传的文件格式不正确.");
				return false;
			}
			$("#logoSpan").html("");
		}
	    $("#editForm").submit();
	}


</script>
  </head>
  
<body>
<div id="top">
 	<!-- 头部-->
 	<%@include file="/manage/mainTop.jsp"%>
</div>
<div id="top2"></div>

<!-- 中间-->
<div id="main1">
<!-- 左边-->
 <%@include file="/manage/mainLeft.jsp"%>
 <div class="mainr2">

<table width="789" height="539" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F1F1">
  <tr>
    <td width="789" height="39" align="left" valign="middle"><span class="STYLE1">&nbsp;用户管理 &gt; 信息修改</span></td>
  </tr>
  <tr>
    <td height="500" align="center" valign="top" bgcolor="#FFFFFF" style="border:1px solid #C5C5C5; padding:1px ;">
    <table width="100%" height="32" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="1%" height="32" background="images/sp_bg.jpg">&nbsp;</td>
        <td width="3%" align="center" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><img src="images/dian.jpg" width="10" height="16" /></td>
        <td width="95%" align="left" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><span class="STYLE3">基本信息</span></td>
        <td width="1%" background="images/sp_bg.jpg">&nbsp;</td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8">&nbsp;</td>
        </tr>
      </table>
      
      <table width="775" height="436" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="325" height="38" align="center">&nbsp;</td>
          <td width="450" align="left" valign="top">&nbsp;</td>
        </tr>
        <tr>
    <form name="editForm" id="editForm" action="companyLogoUpload!uploadUserLogo.action" enctype="multipart/form-data" method="post">
          <td height="307" align="center" valign="top">
          
          <s:if test="#session.htImgIcoPath != null">
          		<img src="<s:property value="#session.htImgIcoPath"/>" width="230" height="195" />
          </s:if>
          <s:else>
          		  <%-- 如果session中用户对象有数据就显示对象中的图片路径，不存在就显示默认图片 --%>
		          <s:if test="#session.htImgIcoPath != null">
		          		<img src="<s:property value="#session.htImgIcoPath"/>" width="230" height="195" />
		          </s:if>
		          <s:else>
		          		<s:if test='#request.xgUserInfo.personalIco != null && #request.xgUserInfo.personalIco !="" '>
		          			<img src="<s:property value="#request.xgUserInfo.personalIco"/>" width="230" height="195" />
		          		</s:if>
		          		<s:else>
		          			<img src="images/default_pic.gif" width="230" height="195" />
		          		</s:else>
		          		
		          </s:else>
          		
          </s:else>
          
          
            <table width="242" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #DEDEDE;">
              <tr>
                <td height="20" align="center">
             <%-- <a style="cursor:pointer;" onclick="openPage('upload_logo.jsp')">更改照片</a>
             		<div align="left">
						<s:include value="upload_logo.jsp" />
					</div>--%>
					
					
		<table border="0" align="center" cellpadding="0" cellspacing="0" class="gxzp">
			  <tr>
			    <td width="46" height="25" align="left" valign="middle"  class="gxzp1">&nbsp;&nbsp;</td>
			    <td width="538" align="left" valign="middle"  class="gxzp1"><strong>更换照片:</strong></td>
			  </tr>
			  <tr>
			    <td height="98" colspan="2" align="left">
			    <s:hidden id="picFileName" name="picFileName" value="" ></s:hidden>
			    <s:hidden id="jspFileName" name="jspFileName" value="bsUserInfoModify.jsp" ></s:hidden>
		<%--   <form name="tjgxzp" id="tjgxzp" action="jbzl.html" method="post"></form> --%>
			      <table height="68" border="0" align="center" cellpadding="0" cellspacing="0">
			        <tr>
			          <td height="31"><input type="file" name="pic" id="pic" size="40" accept="image/gif,jpg" /></td>
			        </tr>
			        <tr>
			          <td height="16"><span class="STYLE1">文件格式JPG、GIF,个人照片不可超过10K</span></td>
			        </tr>
			        <tr>
			          <td height="21">
			            <input type="button" onclick="javascript:uploadSubmit();" name="" value="保存图片 " class="button" />
			            <input type="reset"  value=" 取  消 "  />&nbsp;&nbsp;
			            <span id="logoSpan" style="color: red;"></span>
						<%-- 展示错误的字幕	<s:actionerror/>--%>	
						&nbsp;&nbsp;
						<span style="color: red;"><s:property value="#session.htErrFileSize"/></span>				
			          </td>
			        </tr>
			      </table>
			           
			     </td>
			  </tr>
		</table>    	
    	
					
                </td>
              </tr>
            </table>
           
            </td>
            
                </form>
            
            
   <td width="450" align="left" valign="top">
          
        <form action="bsumAction!dobsModUserInfo.action" name="modifyUserInfo" id="modifyUserInfo" method="post">
            <table height="392" border="0" cellpadding="0" cellspacing="0">
       <%--  <input type="hidden" name="currentPageNo" id="currentPageNo" value='<s:property value="#request.currentPageNo"/>' />--%>
            <tr>
              <td width="75" align="right">手机号码：</td>
              <td width="120">
              <input name="user.account" id="account" type="text" size="20" maxlength="11" value="<s:property value="#request.xgUserInfo.account"/>" style="border:1px solid #626262; height:20px;"  /></td>
              <td width="300" ><span class="STYLE6">*</span>&nbsp;<span style="color:red"  id="mobileSpan"></span>
              </td>
            </tr>
            <tr>
            	<td width="75" align="right">新密码：</td>
            	<td>
            	<input name="user.password" id="password" type="password" size="22"  maxlength="16" style="border:1px solid #626262; height:20px;"  />
            	</td>
            	<td>&nbsp;<span style="color:red"  id="passwordSpan"></span></td>
            </tr>
            <tr>
            	<td width="75" align="right">确认密码：</td>
            	<td>
            	<input name="confirmationPassword" id="confirmationPassword" type="password" size="22"  maxlength="16" style="border:1px solid #626262; height:20px;"  />
            	</td>
            	<td>&nbsp;<span style="color:red"  id="cfPasswordSpan"></span></td>
            </tr>
                  
            <tr>
              <td align="right">姓名：</td>
              <td>
              		<input name="user.userName" id="user_name" type="text" value="<s:property value="#request.xgUserInfo.userName"/>" size="20" maxlength="16" style="border:1px solid #626262; height:20px;"  />
                    
              </td>
              <td><span class="STYLE6">*</span>&nbsp;<span style="color:red"  id="truenameSpan"></span></td>
            </tr>
            <tr>
              <td align="right">用户类型：</td>
              <td>
              <s:if test='#request.xgUserInfo.type == "0"'>
              	   <input name="user.type" id="type" type="radio" checked="checked" value="0" style="border:1px solid #DBDBDB; height:20px;"  />&nbsp;普通用户&nbsp;&nbsp;&nbsp;
                   <input name="user.type" id="type" type="radio" value="1" style="border:1px solid #DBDBDB; height:20px;"  />&nbsp;vip用户
              
              </s:if>
              <s:else>
              		<input name="user.type" id="type" type="radio" value="0" style="border:1px solid #DBDBDB; height:20px;"  />&nbsp;普通用户&nbsp;&nbsp;&nbsp;
                    <input name="user.type" id="type" type="radio" checked="checked" value="1" style="border:1px solid #DBDBDB; height:20px;"  />&nbsp;vip用户
              </s:else>
              
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="right">所在地区：</td>
              <td class="se">
              	<s:hidden id="userProvince" name="user.province" value="" ></s:hidden>
           		<s:hidden id="userCity" name="user.city" value="" ></s:hidden>
           		<s:hidden id="userZone" name="user.zone" value="" ></s:hidden>

				<s:select name="province" onchange="changeProvinceHandler();" id="province" style="width:45%;"
					list="provinces" headerKey="0" headerValue="请选择..."
					listValue="name" listKey="id" value="sf_id">
				</s:select>
				省
				<s:select id="city" name="city" onchange="changeCityHandler();" headerKey="0" style="width:40%;" headerValue="请选择..."
					    listValue="name" listKey="id" list="cityList" value="cs_id">
				</s:select>
				市
				<s:select id="area" name="area" headerKey="0" style="width:40%;" headerValue="请选择..."
						listValue="name" listKey="id"  list="areaList" value="qy_id">
				</s:select>
				区
				
            	</td>
              	
              <td><span class="STYLE6">*</span>&nbsp;<span style="color:red" id="areaSpan"></span></td>
              
            </tr>
            <tr>
              <td align="right">所在公司：</td>
              <td>
              <%-- 
              	<select name="user.company.id" id="company" style="width:150px;">
                  	  <option value="">请选择...</option>
	                  <s:iterator id="companys" value="companyList" status="st">
						<option value="<s:property value="id" />"><s:property value="companyName" /></option>
					  </s:iterator>
                  </select>
				--%>                  
                  <s:select name="user.company.id" id="company" style="width:150px;"
					list="companyList" headerKey="0" headerValue="请选择..."
					listValue="companyName" listKey="id" value="company_id">
				  </s:select>
                  
              </td>
              
              <td>
                  <span class="STYLE6">*</span>&nbsp;<span style="color:red"  id="companySpan"></span>
              </td>
            </tr>
            <tr>
                  <td align="right">密码问题：</td>
                  <td>
                  <select name="user.pwdQuestion" id="pwd_question" style="width:150px;" >
                  		<option value="">请选择...</option>
                  		<option value="我手机号码的后6位?">我手机号码的后6位？</option>
                  		<option value="我母亲的生日?">我母亲的生日？</option>
                  		<option value="我父亲的生日?">我父亲的生日？</option>
                  		<option value="我最好朋友的生日?">我最好朋友的生日？</option>
                  		<option value="我儿时居住地的地址?">我儿时居住地的地址？</option>
                  		<option value="我小学校名全称?">我小学校名全称？</option>
                  		<option value="离我家最近的医院全称?">离我家最近的医院全称？</option>
                  		<option value="离我家最近的公园全称?">离我家最近的公园全称？</option>
                  		<option value="我的座右铭是?">我的座右铭是？</option>
                  		<option value="我最喜爱的电影?">我最喜爱的电影？</option>
                  		<option value="我最喜爱的歌曲?">我最喜爱的歌曲？</option>
                  		<option value="我最喜爱的食物?">我最喜爱的食物？</option>
                  		<option value="我最大的爱好?">我最大的爱好？</option>
                  		<option value="我最喜欢的小说?">我最喜欢的小说？</option>
                  		<option value="我最喜欢的运动队?">我最喜欢的运动队？</option>
                  </select>
                  <input type="hidden" name="pwdQuestion" id="pwdQuestion" value="<s:property value="#request.xgUserInfo.pwdQuestion"/>" />
                  </td>
                  <td>
	                  <span class="STYLE6">*</span>
	                  <span style="color:red"  id="questionSpan"></span>
                  </td>
            </tr>
            <tr>
                  <td align="right">问题答案：</td>
                  <td>
                  <input name="user.pwdAnswer" id="pwd_answer" value="<s:property value="#request.xgUserInfo.pwdAnswer"/>" type="text" size="20" style="border:1px solid #DBDBDB; height:20px;"  />
                  
                  </td>
                  <td>
	                  <span class="STYLE6">*</span>
	                  <span style="color:red"  id="answerSpan"></span>
                  </td>
            </tr>
            <tr>
              <td align="right">电子邮箱：</td>
              <td>
              <input name="user.email" id="email" type="text" value="<s:property value="#request.xgUserInfo.email"/>" style="border:1px solid #DBDBDB; height:20px; color:#626262;" size="20" />
              </td>
              <td><span style="color:red"  id="emailSpan"></span></td>
            </tr>
            <tr>
              <td align="right">QQ号码：</td>
              <td>
              	<input name="user.qq" id="userQq" type="text" maxlength="11" value="<s:property value="#request.xgUserInfo.qq"/>" style="border:1px solid #DBDBDB; height:20px; color:#626262;" size="20" />
                  
              </td>
              <td><span style="color:red" id="qqSpan"></span></td>
            </tr>
            <tr>
              <td align="right">个人主页：</td>
              <td>
              <input name="user.personalHonepage" id="personalHonepage" type="text" value="<s:property value="#request.xgUserInfo.personalHonepage"/>" style="border:1px solid #DBDBDB; height:20px; color:#626262;" size="20" />
              
              </td>
              <td><span style="color:red"  id="individualSpan"></span></td>
            </tr>
            <tr>
              <td height="74" align="right" valign="top" style="line-height:23px;">个人介绍：</td>
              <td valign="top"  style="line-height:23px;">
               <span class="dx_content2"> </span>
                <textarea name="user.personalIntro" id="personalIntro" cols="18" rows="5" id="grjj"><s:property value="#request.xgUserInfo.personalIntro"/></textarea>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
             <td>&nbsp;</td>
             <td><span style="color:red"  id="personalIntroSpan"></span></td>
             <td>&nbsp;</td>
            </tr>
            <tr>
              <td height="50" colspan="2" align="left">
              <img src="images/bc.jpg" width="92" onclick="javascript:modUserSubmit();" style="cursor:hand" height="24" />&nbsp;&nbsp;&nbsp;
          <%--     <img src="images/qx1.jpg" width="92" height="24" onclick="javascript:quXiao();" />--%>
              </td>
              <td>&nbsp;</td>
          </tr></table>
          
          	</form>	 
          </td>
        </tr>
      </table></td>
  </tr>
</table>
		
   </div>

</div>

</body>
<script type="text/javascript">
loadQuestion();
function loadQuestion(){ //加载下拉框的初始值
  var questionVal = $.trim($("#pwdQuestion").val())
  var pwdQues = document.getElementById("pwd_question");
//var pwdQues = document.getElementsByName("user.pwdQuestion");
  //alert("questionVal= "+questionVal);
/*  for(i=0;i < pwdQues.options.length;i++) {
   // alert("问题："+pwdQues.options[i].value);
 	 if(pwdQues.options[i].value == questionVal){
  	 	pwdQues.options[i].selected = true;
  	 	break;
  	 }
  }*/
  if(questionVal != "" && questionVal != null){
  	 pwdQues.value = questionVal; //设置初始值
  }
  
}

</script>

</html>
